﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>My Chat Room - Login </title>
    <link href="style.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="js/scroll_var.js"></script>
    <script type="text/javascript" src="js/function.js"></script>
    <script type="text/javascript">
      var current_user = synchronous_ajax("sessionservlet","param=getuser");
	   //window.alert(current_user);  
	   if(current_user!="")
		   {
		     window.location ="index.html";
		   }
	   else 
		   {
		   	 ajax_load('signservlet?act=signin','main');
		   }
    </script>
</head>

<body>

<div id="wrapper-login">
	<div id="nav-login"> 
    	<div id="nav_link">
            <a href="javascript:ajax_load('signservlet?act=signin','main')">Đăng Nhập</a> | 
            <a href="javascript:ajax_load('signservlet?act=signup','main')">Đăng Ký</a>
        </div>
    </div><!--/#nav-->
    <div id="main">
   		<div id="content">
        	Loading...
    	</div><!--/#content-->
    </div><!--/#main-->
    
 
     
    
</div><!--/#wrapper-->
</script>
</body>
</html>